/*
 * XML Type:  PaymentInquiryResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PaymentInquiryResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PaymentInquiryResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PaymentInquiryResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.PaymentInquiryResponse
{
    
    public PaymentInquiryResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SRVRTID$0 = 
        new javax.xml.namespace.QName("", "SRVRTID");
    private static final javax.xml.namespace.QName PMTPRCSTS$2 = 
        new javax.xml.namespace.QName("", "PMTPRCSTS");
    private static final javax.xml.namespace.QName CHECKNUM$4 = 
        new javax.xml.namespace.QName("", "CHECKNUM");
    
    
    /**
     * Gets the "SRVRTID" element
     */
    public java.lang.String getSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SRVRTID" element
     */
    public void setSRVRTID(java.lang.String srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SRVRTID$0);
            }
            target.setStringValue(srvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "SRVRTID" element
     */
    public void xsetSRVRTID(net.ofx.types.x2003.x04.ServerIdType srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(SRVRTID$0);
            }
            target.set(srvrtid);
        }
    }
    
    /**
     * Gets the "PMTPRCSTS" element
     */
    public net.ofx.types.x2003.x04.PaymentProcessingStatus getPMTPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().find_element_user(PMTPRCSTS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "PMTPRCSTS" element
     */
    public void setPMTPRCSTS(net.ofx.types.x2003.x04.PaymentProcessingStatus pmtprcsts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().find_element_user(PMTPRCSTS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().add_element_user(PMTPRCSTS$2);
            }
            target.set(pmtprcsts);
        }
    }
    
    /**
     * Appends and returns a new empty "PMTPRCSTS" element
     */
    public net.ofx.types.x2003.x04.PaymentProcessingStatus addNewPMTPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().add_element_user(PMTPRCSTS$2);
            return target;
        }
    }
    
    /**
     * Gets the "CHECKNUM" element
     */
    public java.lang.String getCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKNUM$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHECKNUM" element
     */
    public net.ofx.types.x2003.x04.CheckNumberType xgetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHECKNUM$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "CHECKNUM" element
     */
    public boolean isSetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHECKNUM$4) != 0;
        }
    }
    
    /**
     * Sets the "CHECKNUM" element
     */
    public void setCHECKNUM(java.lang.String checknum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKNUM$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHECKNUM$4);
            }
            target.setStringValue(checknum);
        }
    }
    
    /**
     * Sets (as xml) the "CHECKNUM" element
     */
    public void xsetCHECKNUM(net.ofx.types.x2003.x04.CheckNumberType checknum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHECKNUM$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().add_element_user(CHECKNUM$4);
            }
            target.set(checknum);
        }
    }
    
    /**
     * Unsets the "CHECKNUM" element
     */
    public void unsetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHECKNUM$4, 0);
        }
    }
}
